<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta http-equiv="Access-Control-Allow-Origin" content="*" />
        <meta http-equiv="X-Frame-Options" content="ALLOW-FROM">
        <meta http-equiv="pragma" content="no-cache" />
        <title>分享</title>
        <script src="../cordova.js"></script>
        <script src="../cordova_plugins.js"></script>
        <h1 style="margin-top:50px;margin-left:80px; class="title">分享体验<h1/>
        <script>
            
            
          function showViewController(){
            cordova.exec(function(data) {
                }, function(err) {alert(err)}, "BDTTSPlugin", "getTextToSynthesizer", ["正232321313在进行文本语音播放","love","你好啊","true"]);
                        }
        function player(){
                        cordova.exec(function(data) {
                        }, function(err) {alert(err)}, "BDTTSPlugin", "PlayVoice", ["语音播放","OK"]);
                        }
                        
        </script>
    </head>
         <body>
         
        <input style="margin-top:80px;margin-left:100px;height:60px;width:100px;font-size:16px" type="button" value="合成" onclick="showViewController()" ><br />
        
        <input style="margin-top:150px;margin-left:100px;height:60px;width:100px;font-size:16px" type="button" value="播放" onclick="player()" ><br />
                 
     </body>
   
</html>
